Integrand size = 41, antiderivative size = 278 \[ \int (a+b \cos (c+d x))^3 \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^6(c+d x) \, dx=\frac {\left (3 a^3 B+12 a b^2 B+4 b^3 (A+2 C)+3 a^2 b (3 A+4 C)\right ) \text {arctanh}(\sin (c+d x))}{8 d}+\frac {\left (30 a^2 b B+15 b^3 B+15 a b^2 (2 A+3 C)+2 a^3 (4 A+5 C)\right ) \tan (c+d x)}{15 d}+\frac {\left (6 A b^3+15 a^3 B+50 a b^2 B+15 a^2 b (3 A+4 C)\right ) \sec (c+d x) \tan (c+d x)}{40 d}+\frac {a \left (3 A b^2+15 a b B+2 a^2 (4 A+5 C)\right ) \sec ^2(c+d x) \tan (c+d x)}{30 d}+\frac {(3 A b+5 a B) (a+b \cos (c+d x))^2 \sec ^3(c+d x) \tan (c+d x)}{20 d}+\frac {A (a+b \cos (c+d x))^3 \sec ^4(c+d x) \tan (c+d x)}{5 d} \]
[Out]
Time = 0.87 (sec) , antiderivative size = 278, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {3126, 3110, 3100, 2827, 3852, 8, 3855} \[ \int (a+b \cos (c+d x))^3 \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^6(c+d x) \, dx=\frac {a \tan (c+d x) \sec ^2(c+d x) \left (2 a^2 (4 A+5 C)+15 a b B+3 A b^2\right )}{30 d}+\frac {\left (3 a^3 B+3 a^2 b (3 A+4 C)+12 a b^2 B+4 b^3 (A+2 C)\right ) \text {arctanh}(\sin (c+d x))}{8 d}+\frac {\tan (c+d x) \left (2 a^3 (4 A+5 C)+30 a^2 b B+15 a b^2 (2 A+3 C)+15 b^3 B\right )}{15 d}+\frac {\tan (c+d x) \sec (c+d x) \left (15 a^3 B+15 a^2 b (3 A+4 C)+50 a b^2 B+6 A b^3\right )}{40 d}+\frac {(5 a B+3 A b) \tan (c+d x) \sec ^3(c+d x) (a+b \cos (c+d x))^2}{20 d}+\frac {A \tan (c+d x) \sec ^4(c+d x) (a+b \cos (c+d x))^3}{5 d} \]
[In]
[Out]
Rule 8
Rule 2827
Rule 3100
Rule 3110
Rule 3126
Rule 3852
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {A (a+b \cos (c+d x))^3 \sec ^4(c+d x) \tan (c+d x)}{5 d}+\frac {1}{5} \int (a+b \cos (c+d x))^2 \left (3 A b+5 a B+(4 a A+5 b B+5 a C) \cos (c+d x)+b (A+5 C) \cos ^2(c+d x)\right ) \sec ^5(c+d x) \, dx \\ & = \frac {(3 A b+5 a B) (a+b \cos (c+d x))^2 \sec ^3(c+d x) \tan (c+d x)}{20 d}+\frac {A (a+b \cos (c+d x))^3 \sec ^4(c+d x) \tan (c+d x)}{5 d}+\frac {1}{20} \int (a+b \cos (c+d x)) \left (2 \left (3 A b^2+15 a b B+2 a^2 (4 A+5 C)\right )+\left (15 a^2 B+20 b^2 B+a b (29 A+40 C)\right ) \cos (c+d x)+b (7 A b+5 a B+20 b C) \cos ^2(c+d x)\right ) \sec ^4(c+d x) \, dx \\ & = \frac {a \left (3 A b^2+15 a b B+2 a^2 (4 A+5 C)\right ) \sec ^2(c+d x) \tan (c+d x)}{30 d}+\frac {(3 A b+5 a B) (a+b \cos (c+d x))^2 \sec ^3(c+d x) \tan (c+d x)}{20 d}+\frac {A (a+b \cos (c+d x))^3 \sec ^4(c+d x) \tan (c+d x)}{5 d}-\frac {1}{60} \int \left (-3 \left (6 A b^3+15 a^3 B+50 a b^2 B+15 a^2 b (3 A+4 C)\right )-4 \left (30 a^2 b B+15 b^3 B+15 a b^2 (2 A+3 C)+2 a^3 (4 A+5 C)\right ) \cos (c+d x)-3 b^2 (7 A b+5 a B+20 b C) \cos ^2(c+d x)\right ) \sec ^3(c+d x) \, dx \\ & = \frac {\left (6 A b^3+15 a^3 B+50 a b^2 B+15 a^2 b (3 A+4 C)\right ) \sec (c+d x) \tan (c+d x)}{40 d}+\frac {a \left (3 A b^2+15 a b B+2 a^2 (4 A+5 C)\right ) \sec ^2(c+d x) \tan (c+d x)}{30 d}+\frac {(3 A b+5 a B) (a+b \cos (c+d x))^2 \sec ^3(c+d x) \tan (c+d x)}{20 d}+\frac {A (a+b \cos (c+d x))^3 \sec ^4(c+d x) \tan (c+d x)}{5 d}-\frac {1}{120} \int \left (-8 \left (30 a^2 b B+15 b^3 B+15 a b^2 (2 A+3 C)+2 a^3 (4 A+5 C)\right )-15 \left (3 a^3 B+12 a b^2 B+4 b^3 (A+2 C)+3 a^2 b (3 A+4 C)\right ) \cos (c+d x)\right ) \sec ^2(c+d x) \, dx \\ & = \frac {\left (6 A b^3+15 a^3 B+50 a b^2 B+15 a^2 b (3 A+4 C)\right ) \sec (c+d x) \tan (c+d x)}{40 d}+\frac {a \left (3 A b^2+15 a b B+2 a^2 (4 A+5 C)\right ) \sec ^2(c+d x) \tan (c+d x)}{30 d}+\frac {(3 A b+5 a B) (a+b \cos (c+d x))^2 \sec ^3(c+d x) \tan (c+d x)}{20 d}+\frac {A (a+b \cos (c+d x))^3 \sec ^4(c+d x) \tan (c+d x)}{5 d}-\frac {1}{8} \left (-3 a^3 B-12 a b^2 B-4 b^3 (A+2 C)-3 a^2 b (3 A+4 C)\right ) \int \sec (c+d x) \, dx-\frac {1}{15} \left (-30 a^2 b B-15 b^3 B-15 a b^2 (2 A+3 C)-2 a^3 (4 A+5 C)\right ) \int \sec ^2(c+d x) \, dx \\ & = \frac {\left (3 a^3 B+12 a b^2 B+4 b^3 (A+2 C)+3 a^2 b (3 A+4 C)\right ) \text {arctanh}(\sin (c+d x))}{8 d}+\frac {\left (6 A b^3+15 a^3 B+50 a b^2 B+15 a^2 b (3 A+4 C)\right ) \sec (c+d x) \tan (c+d x)}{40 d}+\frac {a \left (3 A b^2+15 a b B+2 a^2 (4 A+5 C)\right ) \sec ^2(c+d x) \tan (c+d x)}{30 d}+\frac {(3 A b+5 a B) (a+b \cos (c+d x))^2 \sec ^3(c+d x) \tan (c+d x)}{20 d}+\frac {A (a+b \cos (c+d x))^3 \sec ^4(c+d x) \tan (c+d x)}{5 d}-\frac {\left (30 a^2 b B+15 b^3 B+15 a b^2 (2 A+3 C)+2 a^3 (4 A+5 C)\right ) \text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{15 d} \\ & = \frac {\left (3 a^3 B+12 a b^2 B+4 b^3 (A+2 C)+3 a^2 b (3 A+4 C)\right ) \text {arctanh}(\sin (c+d x))}{8 d}+\frac {\left (30 a^2 b B+15 b^3 B+15 a b^2 (2 A+3 C)+2 a^3 (4 A+5 C)\right ) \tan (c+d x)}{15 d}+\frac {\left (6 A b^3+15 a^3 B+50 a b^2 B+15 a^2 b (3 A+4 C)\right ) \sec (c+d x) \tan (c+d x)}{40 d}+\frac {a \left (3 A b^2+15 a b B+2 a^2 (4 A+5 C)\right ) \sec ^2(c+d x) \tan (c+d x)}{30 d}+\frac {(3 A b+5 a B) (a+b \cos (c+d x))^2 \sec ^3(c+d x) \tan (c+d x)}{20 d}+\frac {A (a+b \cos (c+d x))^3 \sec ^4(c+d x) \tan (c+d x)}{5 d} \\ \end{align*}
Time = 4.84 (sec) , antiderivative size = 204, normalized size of antiderivative = 0.73 \[ \int (a+b \cos (c+d x))^3 \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^6(c+d x) \, dx=\frac {15 \left (3 a^3 B+12 a b^2 B+4 b^3 (A+2 C)+3 a^2 b (3 A+4 C)\right ) \text {arctanh}(\sin (c+d x))+\tan (c+d x) \left (15 \left (4 A b^3+3 a^3 B+12 a b^2 B+3 a^2 b (3 A+4 C)\right ) \sec (c+d x)+30 a^2 (3 A b+a B) \sec ^3(c+d x)+8 \left (15 \left (3 a^2 b B+b^3 B+a^3 (A+C)+3 a b^2 (A+C)\right )+5 a \left (3 A b^2+3 a b B+a^2 (2 A+C)\right ) \tan ^2(c+d x)+3 a^3 A \tan ^4(c+d x)\right )\right )}{120 d} \]
[In]
[Out]
Time = 0.70 (sec) , antiderivative size = 243, normalized size of antiderivative = 0.87
method | result | size |
parts | \(-\frac {A \,a^{3} \left (-\frac {8}{15}-\frac {\left (\sec ^{4}\left (d x +c \right )\right )}{5}-\frac {4 \left (\sec ^{2}\left (d x +c \right )\right )}{15}\right ) \tan \left (d x +c \right )}{d}+\frac {\left (3 A \,a^{2} b +B \,a^{3}\right ) \left (-\left (-\frac {\left (\sec ^{3}\left (d x +c \right )\right )}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )}{d}+\frac {\left (B \,b^{3}+3 C a \,b^{2}\right ) \tan \left (d x +c \right )}{d}+\frac {\left (A \,b^{3}+3 B a \,b^{2}+3 a^{2} b C \right ) \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )}{d}-\frac {\left (3 a A \,b^{2}+3 B \,a^{2} b +a^{3} C \right ) \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (d x +c \right )\right )}{3}\right ) \tan \left (d x +c \right )}{d}+\frac {C \,b^{3} \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{d}\) | \(243\) |
derivativedivides | \(\frac {-A \,a^{3} \left (-\frac {8}{15}-\frac {\left (\sec ^{4}\left (d x +c \right )\right )}{5}-\frac {4 \left (\sec ^{2}\left (d x +c \right )\right )}{15}\right ) \tan \left (d x +c \right )+B \,a^{3} \left (-\left (-\frac {\left (\sec ^{3}\left (d x +c \right )\right )}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )-a^{3} C \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (d x +c \right )\right )}{3}\right ) \tan \left (d x +c \right )+3 A \,a^{2} b \left (-\left (-\frac {\left (\sec ^{3}\left (d x +c \right )\right )}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )-3 B \,a^{2} b \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (d x +c \right )\right )}{3}\right ) \tan \left (d x +c \right )+3 a^{2} b C \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )-3 a A \,b^{2} \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (d x +c \right )\right )}{3}\right ) \tan \left (d x +c \right )+3 B a \,b^{2} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+3 C \tan \left (d x +c \right ) a \,b^{2}+A \,b^{3} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+B \tan \left (d x +c \right ) b^{3}+C \,b^{3} \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{d}\) | \(369\) |
default | \(\frac {-A \,a^{3} \left (-\frac {8}{15}-\frac {\left (\sec ^{4}\left (d x +c \right )\right )}{5}-\frac {4 \left (\sec ^{2}\left (d x +c \right )\right )}{15}\right ) \tan \left (d x +c \right )+B \,a^{3} \left (-\left (-\frac {\left (\sec ^{3}\left (d x +c \right )\right )}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )-a^{3} C \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (d x +c \right )\right )}{3}\right ) \tan \left (d x +c \right )+3 A \,a^{2} b \left (-\left (-\frac {\left (\sec ^{3}\left (d x +c \right )\right )}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )-3 B \,a^{2} b \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (d x +c \right )\right )}{3}\right ) \tan \left (d x +c \right )+3 a^{2} b C \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )-3 a A \,b^{2} \left (-\frac {2}{3}-\frac {\left (\sec ^{2}\left (d x +c \right )\right )}{3}\right ) \tan \left (d x +c \right )+3 B a \,b^{2} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+3 C \tan \left (d x +c \right ) a \,b^{2}+A \,b^{3} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+B \tan \left (d x +c \right ) b^{3}+C \,b^{3} \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{d}\) | \(369\) |
parallelrisch | \(\frac {-675 \left (\frac {4 b^{3} \left (A +2 C \right )}{9}+\frac {4 B a \,b^{2}}{3}+\left (A +\frac {4 C}{3}\right ) a^{2} b +\frac {B \,a^{3}}{3}\right ) \left (\frac {\cos \left (5 d x +5 c \right )}{5}+\cos \left (3 d x +3 c \right )+2 \cos \left (d x +c \right )\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )+675 \left (\frac {4 b^{3} \left (A +2 C \right )}{9}+\frac {4 B a \,b^{2}}{3}+\left (A +\frac {4 C}{3}\right ) a^{2} b +\frac {B \,a^{3}}{3}\right ) \left (\frac {\cos \left (5 d x +5 c \right )}{5}+\cos \left (3 d x +3 c \right )+2 \cos \left (d x +c \right )\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+40 \left (9 B \,b^{3}+30 \left (A +\frac {9 C}{10}\right ) a \,b^{2}+30 B \,a^{2} b +8 a^{3} \left (A +\frac {5 C}{4}\right )\right ) \sin \left (3 d x +3 c \right )+8 \left (15 B \,b^{3}+30 \left (A +\frac {3 C}{2}\right ) a \,b^{2}+30 B \,a^{2} b +8 a^{3} \left (A +\frac {5 C}{4}\right )\right ) \sin \left (5 d x +5 c \right )+60 \left (4 A \,b^{3}+12 B a \,b^{2}+21 \left (A +\frac {4 C}{7}\right ) a^{2} b +7 B \,a^{3}\right ) \sin \left (2 d x +2 c \right )+30 \left (4 A \,b^{3}+12 B a \,b^{2}+9 \left (A +\frac {4 C}{3}\right ) a^{2} b +3 B \,a^{3}\right ) \sin \left (4 d x +4 c \right )+640 \sin \left (d x +c \right ) \left (\frac {3 B \,b^{3}}{8}+\frac {3 a \left (A +\frac {3 C}{4}\right ) b^{2}}{2}+\frac {3 B \,a^{2} b}{2}+a^{3} \left (A +\frac {C}{2}\right )\right )}{600 d \left (\frac {\cos \left (5 d x +5 c \right )}{5}+\cos \left (3 d x +3 c \right )+2 \cos \left (d x +c \right )\right )}\) | \(410\) |
risch | \(\text {Expression too large to display}\) | \(937\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 292, normalized size of antiderivative = 1.05 \[ \int (a+b \cos (c+d x))^3 \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^6(c+d x) \, dx=\frac {15 \, {\left (3 \, B a^{3} + 3 \, {\left (3 \, A + 4 \, C\right )} a^{2} b + 12 \, B a b^{2} + 4 \, {\left (A + 2 \, C\right )} b^{3}\right )} \cos \left (d x + c\right )^{5} \log \left (\sin \left (d x + c\right ) + 1\right ) - 15 \, {\left (3 \, B a^{3} + 3 \, {\left (3 \, A + 4 \, C\right )} a^{2} b + 12 \, B a b^{2} + 4 \, {\left (A + 2 \, C\right )} b^{3}\right )} \cos \left (d x + c\right )^{5} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, {\left (8 \, {\left (2 \, {\left (4 \, A + 5 \, C\right )} a^{3} + 30 \, B a^{2} b + 15 \, {\left (2 \, A + 3 \, C\right )} a b^{2} + 15 \, B b^{3}\right )} \cos \left (d x + c\right )^{4} + 24 \, A a^{3} + 15 \, {\left (3 \, B a^{3} + 3 \, {\left (3 \, A + 4 \, C\right )} a^{2} b + 12 \, B a b^{2} + 4 \, A b^{3}\right )} \cos \left (d x + c\right )^{3} + 8 \, {\left ({\left (4 \, A + 5 \, C\right )} a^{3} + 15 \, B a^{2} b + 15 \, A a b^{2}\right )} \cos \left (d x + c\right )^{2} + 30 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{240 \, d \cos \left (d x + c\right )^{5}} \]
[In]
[Out]
Timed out. \[ \int (a+b \cos (c+d x))^3 \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^6(c+d x) \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.21 (sec) , antiderivative size = 452, normalized size of antiderivative = 1.63 \[ \int (a+b \cos (c+d x))^3 \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^6(c+d x) \, dx=\frac {16 \, {\left (3 \, \tan \left (d x + c\right )^{5} + 10 \, \tan \left (d x + c\right )^{3} + 15 \, \tan \left (d x + c\right )\right )} A a^{3} + 80 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} C a^{3} + 240 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} B a^{2} b + 240 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} A a b^{2} - 15 \, B a^{3} {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{3} - 5 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 45 \, A a^{2} b {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{3} - 5 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 180 \, C a^{2} b {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 180 \, B a b^{2} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 60 \, A b^{3} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 120 \, C b^{3} {\left (\log \left (\sin \left (d x + c\right ) + 1\right ) - \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 720 \, C a b^{2} \tan \left (d x + c\right ) + 240 \, B b^{3} \tan \left (d x + c\right )}{240 \, d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 989 vs. \(2 (266) = 532\).
Time = 0.38 (sec) , antiderivative size = 989, normalized size of antiderivative = 3.56 \[ \int (a+b \cos (c+d x))^3 \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^6(c+d x) \, dx=\text {Too large to display} \]
[In]
[Out]
Time = 4.49 (sec) , antiderivative size = 601, normalized size of antiderivative = 2.16 \[ \int (a+b \cos (c+d x))^3 \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^6(c+d x) \, dx=\frac {\mathrm {atanh}\left (\frac {4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {A\,b^3}{2}+\frac {3\,B\,a^3}{8}+C\,b^3+\frac {9\,A\,a^2\,b}{8}+\frac {3\,B\,a\,b^2}{2}+\frac {3\,C\,a^2\,b}{2}\right )}{2\,A\,b^3+\frac {3\,B\,a^3}{2}+4\,C\,b^3+\frac {9\,A\,a^2\,b}{2}+6\,B\,a\,b^2+6\,C\,a^2\,b}\right )\,\left (A\,b^3+\frac {3\,B\,a^3}{4}+2\,C\,b^3+\frac {9\,A\,a^2\,b}{4}+3\,B\,a\,b^2+3\,C\,a^2\,b\right )}{d}-\frac {\left (2\,A\,a^3-A\,b^3-\frac {5\,B\,a^3}{4}+2\,B\,b^3+2\,C\,a^3+6\,A\,a\,b^2-\frac {15\,A\,a^2\,b}{4}-3\,B\,a\,b^2+6\,B\,a^2\,b+6\,C\,a\,b^2-3\,C\,a^2\,b\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\left (2\,A\,b^3-\frac {8\,A\,a^3}{3}+\frac {B\,a^3}{2}-8\,B\,b^3-\frac {16\,C\,a^3}{3}-16\,A\,a\,b^2+\frac {3\,A\,a^2\,b}{2}+6\,B\,a\,b^2-16\,B\,a^2\,b-24\,C\,a\,b^2+6\,C\,a^2\,b\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\left (\frac {116\,A\,a^3}{15}+12\,B\,b^3+\frac {20\,C\,a^3}{3}+20\,A\,a\,b^2+20\,B\,a^2\,b+36\,C\,a\,b^2\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\left (-\frac {8\,A\,a^3}{3}-2\,A\,b^3-\frac {B\,a^3}{2}-8\,B\,b^3-\frac {16\,C\,a^3}{3}-16\,A\,a\,b^2-\frac {3\,A\,a^2\,b}{2}-6\,B\,a\,b^2-16\,B\,a^2\,b-24\,C\,a\,b^2-6\,C\,a^2\,b\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (2\,A\,a^3+A\,b^3+\frac {5\,B\,a^3}{4}+2\,B\,b^3+2\,C\,a^3+6\,A\,a\,b^2+\frac {15\,A\,a^2\,b}{4}+3\,B\,a\,b^2+6\,B\,a^2\,b+6\,C\,a\,b^2+3\,C\,a^2\,b\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}-5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6-10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )} \]
[In]
[Out]